package com.ruoyi.system.service.impl;


import com.ruoyi.system.domain.Driver;
import com.ruoyi.system.domain.vo.DriverInfo;
import com.ruoyi.system.mapper.DriverMapper;
import com.ruoyi.system.service.DriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverServiceImpl implements DriverService {
    @Autowired
    private DriverMapper driverMapper;
    @Override
    public DriverInfo getDriverInfo(String userCode) {
        return driverMapper.getDriverInfo(userCode);
    }

    @Override
    public int uploadDriverNum(String driverID, Integer num) {

       return  driverMapper.uploadDriverNum(driverID,num);
    }

    @Override
    public Driver selectByDriverId(String driverID) {
        return driverMapper.selectByDriverId(driverID);
    }


}
